#include "./Int/Int_Buzzer.h"
#include "./Int/Int_DigitalTube.h"
#include "./Int/Int_MatriKey.h"
#include <STC89C5xRC.H>
#define BUZZ P46

void main()
{
    u8 key = 0;
    Int_DigitalTube_Init();
    Int_DigitalTube_DisPlayNum(key);
    while(1)
    {
        key = Int_MatrixKey_CheckSW();
        if(key)
        {
            Int_DigitalTube_DisPlayNum(key);
            Int_Buzzer_Buzz();
        }
        Int_DigitalTube_Refresh();
    }
}